package com.hitgo.soccer.config;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

/** 
 * 社区数据库配置
 */
@XmlRootElement(name="database")
@XmlAccessorType(XmlAccessType.NONE) 
public class MatchDBConfig {
	
	@XmlAttribute(name = "mod", required = true)
	private int mod;//物品id
	
	@XmlElement(name = "driver")
	protected String driver;
	
	@XmlElement(name = "serverURL")
	protected String serverURL;
	
	@XmlElement(name = "username")
	protected String username;
	
	
	@XmlElement(name = "password")
	protected String password;
	
	@XmlElement(name = "testSQL")
	protected String testSQL;
	
	@XmlElement(name = "testBeforeUse")
	protected String testBeforeUse;
	
	@XmlElement(name = "testAfterUse")
	protected boolean testAfterUse;
	
	@XmlElement(name = "minConnections")
	protected int minConnections;
	
	@XmlElement(name = "maxConnections")
	protected int maxConnections;
	
	@XmlElement(name = "connectionTimeout")
	protected float connectionTimeout;
	
	@XmlElement(name = "statistics-log-level")
	protected String statistics_log_level;
	
	@XmlElement(name = "trace")
	protected boolean trace;
	
	@XmlElement(name = "keeping-sleep-time")
	protected int keeping_sleep_time;
	
	
	@XmlElement(name = "poolname")
	protected String poolname;
	
	public String getPoolname() {
		return poolname;
	}

	public String getServerURL() {
		return serverURL;
	}

	public String getUsername() {
		return username;
	}

	public String getPassword() {
		return password;
	}

	public String getTestSQL() {
		return testSQL;
	}

	public String getTestBeforeUse() {
		return testBeforeUse;
	}

	public boolean isTestAfterUse() {
		return testAfterUse;
	}

	public int getMinConnections() {
		return minConnections;
	}

	public int getMaxConnections() {
		return maxConnections;
	}

	public float getConnectionTimeout() {
		return connectionTimeout;
	}

	public String getStatistics_log_level() {
		return statistics_log_level;
	}

	public boolean isTrace() {
		return trace;
	}

	public int getKeeping_sleep_time() {
		return keeping_sleep_time;
	}

	
	public int getMod() {
		return mod;
	}

	public String getDriver() {
		return driver;
	}
}


